<HTML>
<HEAD>
<TITLE>[Chapter 19] TextArea</TITLE>
<META NAME="author" CONTENT="John Zukowski">
<META NAME="date" CONTENT="Thu Jul 31 15:16:21 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="Java AWT">
<META NAME="title" CONTENT="Java AWT">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java AWT" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch19_56.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 19<br>java.awt Reference</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch19_58.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<DIV CLASS=refnamediv>
<H1>TextArea</H1>

<H2>Name</H2>

TextArea

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch19-REFSECT1-AUTOID.57"></A></h2>
</DIV>


<p>
<img align=middle src="./figs/textar2.gif" alt="[Graphic: Figure from the text]" width=502 height=52 border=0>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-1">Description</A></h2>

<P CLASS=para>
The <tt CLASS=literal>TextArea</tt> class provides 
a multi-line <tt CLASS=literal>Component</tt> for 
textual user input. 

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-2">Class Definition</A></h2>

<DIV CLASS=screen>
<P>
<PRE>
public class java.awt.TextArea
    extends java.awt.TextComponent {
  // Constants
  public final static int SCROLLBARS_BOTH; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public final static int SCROLLBARS_HORIZONTAL_ONLY; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public final static int SCROLLBARS_NONE; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public final static int SCROLLBARS_VERTICAL_ONLY; <img src="gifs/bstar.gif" alt="(New)" border=0>
  
  // Constructors
  public TextArea();
  public TextArea (int rows, int columns);
  public TextArea (String text);
  public TextArea (String text, int rows, int columns);
  public TextArea (String text, int rows, int columns, int scrollbars); <img src="gifs/bstar.gif" alt="(New)" border=0>
  
  // Instance Methods
  public void addNotify();
  public synchronized void append (String string); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public void appendText (String string); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public int getColumns();
  public Dimension getMinimumSize(); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public Dimension getMinimumSize (int rows, int columns); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public Dimension getPreferredSize(); <img src="gifs/bstar.gif" alt="(New)" border=0>   
  public Dimension getPreferredSize (int rows, int columns); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public int getRows();
  public int getScrollbarVisibility(); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public synchronized void insert (String string, int position); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public void insertText (String string, int position); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public Dimension minimumSize(); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public Dimension minimumSize (int rows, int columns); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public Dimension preferredSize(); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public Dimension preferredSize (int rows, int columns); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public synchronized void replaceRange (String str, int start, int end); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public void replaceText (String string, int startPosition, int endPosition); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public void setColumns (int columns); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public void setRows (int rows); <img src="gifs/bstar.gif" alt="(New)" border=0>
  
  // Protected Instance Methods
  protected String paramString();
}
</PRE>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3">Constants</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3.1">SCROLLBARS_BOTH</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3.1.1">public final static int SCROLLBARS_BOTH <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
Show both the horizontal and vertical scrollbars. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3.2">SCROLLBARS_HORIZONTAL_ONLY</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3.2.1">public final static int SCROLLBARS_HORIZONTAL_ONLY <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
Show the horizontal scrollbar. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3.3">SCROLLBARS_NONE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3.3.1">public final static int SCROLLBARS_NONE <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
Show no scrollbars. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3.4">SCROLLBARS_VERTICAL_ONLY</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-3.4.1">public final static int SCROLLBARS_VERTICAL_ONLY <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
Show the vertical scrollbar. 

</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-4">Constructors</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-4.1">TextArea</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-4.1.1">public TextArea()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>TextArea</tt> object 
with the default size and no initial content. The default size of a text 
area varies widely from platform to platform, so it's best to avoid 
this constructor. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-4.1.2">public TextArea (int rows, int columns)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>rows</I><br>
<DD>

<P CLASS=para>
Requested number of displayed rows. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>columns</I><br>
<DD>

<P CLASS=para>
Requested number of displayed columns. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>TextArea</tt> object 
of the given size and no initial content.</DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-4.1.3">public TextArea (String text)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>text</I><br>
<DD>

<P CLASS=para>
Initial text for <tt CLASS=literal>TextArea</tt>. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>TextArea</tt> object 
with the given initial content. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-4.1.4">public TextArea (String text, int rows, int columns)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>text</I><br>
<DD>

<P CLASS=para>
Initial text for <tt CLASS=literal>TextArea</tt>. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>rows</I><br>
<DD>

<P CLASS=para>
Requested number of displayed rows. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>columns</I><br>
<DD>

<P CLASS=para>
Requested number of displayed columns. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>TextArea</tt> object 
with the given content and size. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-4.1.5">public TextArea (String text, int rows, int columns, int scrollbars) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>text</I><br>
<DD>

<P CLASS=para>
Initial text for <tt CLASS=literal>TextArea</tt>. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>rows</I><br>
<DD>

<P CLASS=para>
Requested number of displayed rows. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>columns</I><br>
<DD>

<P CLASS=para>
Requested number of displayed columns. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>scrollbars</I><br>
<DD>

<P CLASS=para>
Requested scrollbar visibility. Use one of the constants 
defined. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>TextArea</tt> object 
with the given content, size, and scrollbar visibility. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5">Instance Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.1">addNotify</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.1.1">public void addNotify()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Overrides <br>
<DD>

<P CLASS=para>
<tt CLASS=literal>Component.addNotify()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Creates <tt CLASS=literal>TextArea</tt>'s peer. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.2">append</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.2.1">public synchronized void append (String string) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>string</I><br>
<DD>

<P CLASS=para>
Content to append to the end of the <tt CLASS=literal>TextArea</tt>. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Appends the given text string to the text already displayed in the <tt CLASS=literal>TextArea</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.3">appendText</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.3.1">public void appendText (String string) <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>string</I><br>
<DD>

<P CLASS=para>
Content to append to end of <tt CLASS=literal>TextArea</tt>. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Replaced by <tt CLASS=literal>append(String)</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.4">getColumns</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.4.1">public int getColumns()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The width of the <tt CLASS=literal>TextArea</tt> in 
columns. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.5">getMinimumSize</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.5.1">public Dimension getMinimumSize() <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The minimum dimensions of the <tt CLASS=literal>TextArea</tt>. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.5.2">public Dimension getMinimumSize (int rows, int columns) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>rows</I><br>
<DD>

<P CLASS=para>
Number of rows within <tt CLASS=literal>TextArea</tt> 
to size. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>columns</I><br>
<DD>

<P CLASS=para>
Number of columns within <tt CLASS=literal>TextArea</tt> 
to size. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The minimum dimensions of a <tt CLASS=literal>TextArea</tt> 
of the given size. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.6">getPreferredSize</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.6.1">public Dimension getPreferredSize() <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The preferred dimensions of the <tt CLASS=literal>TextArea</tt>. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.6.2">public Dimension getPreferredSize (int rows, int columns) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>rows</I><br>
<DD>

<P CLASS=para>
Number of rows within <tt CLASS=literal>TextArea</tt> 
to size. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>columns</I><br>
<DD>

<P CLASS=para>
Number of columns within <tt CLASS=literal>TextArea</tt> 
to size. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The preferred dimensions of a <tt CLASS=literal>TextArea</tt> 
of the given size. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.7">getRows</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.7.1">public int getRows()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The height of the <tt CLASS=literal>TextArea</tt> 
in rows. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.8">getScrollbarVisibility</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.8.1">public int getScrollbarVisibility() <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
One of the <tt CLASS=literal>SCROLLBAR_</tt> constants 
indicating which scrollbars are visible. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.9">insert</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.9.1">public synchronized void insert (String string, int position) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>string</I><br>
<DD>

<P CLASS=para>
Content to place within <tt CLASS=literal>TextArea</tt> 
content. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>position</I><br>
<DD>

<P CLASS=para>
Location to insert content. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Places additional text within the <tt CLASS=literal>TextArea</tt> 
at the given position. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.10">insertText</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.10.1">public void insertText (String string, int position) <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>string</I><br>
<DD>

<P CLASS=para>
Content to place within <tt CLASS=literal>TextArea</tt> 
content. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>position</I><br>
<DD>

<P CLASS=para>
Location to insert content. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Places additional text within the <tt CLASS=literal>TextArea</tt> 
at the given position. Replaced by <tt CLASS=literal>insert(String, int)</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.11">minimumSize</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.11.1">public Dimension minimumSize() <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The minimum dimensions of the <tt CLASS=literal>TextArea</tt>. 
Replaced by <tt CLASS=literal>getMinimumSize()</tt>. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.11.2">public Dimension minimumSize (int rows, int columns) <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>rows</I><br>
<DD>

<P CLASS=para>
Number of rows within <tt CLASS=literal>TextArea</tt> 
to size. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>columns</I><br>
<DD>

<P CLASS=para>
Number of columns within <tt CLASS=literal>TextArea</tt> 
to size. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The minimum dimensions of a <tt CLASS=literal>TextArea</tt> 
of the given size. Replaced by <tt CLASS=literal>getMinimumSize(int, int)</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.12">preferredSize</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.12.1">public Dimension preferredSize() <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The preferred dimensions of the <tt CLASS=literal>TextArea</tt>. 
Replaced by <tt CLASS=literal>getPreferredSize()</tt>. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.12.2">public Dimension preferredSize (int rows, int columns) <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>rows</I><br>
<DD>

<P CLASS=para>
Number of rows within <tt CLASS=literal>TextArea</tt> 
to size. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>columns</I><br>
<DD>

<P CLASS=para>
Number of columns within <tt CLASS=literal>TextArea</tt> 
to size. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The preferred dimensions of a <tt CLASS=literal>TextArea</tt> 
of the given size. Replaced by <tt CLASS=literal>getPreferredSize(int, 
int)</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.13">replaceRange</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.13.1">public synchronized void replaceRange (String str, int start, int end) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>str</I><br>
<DD>

<P CLASS=para>
New content to place in <tt CLASS=literal>TextArea</tt>. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>start</I><br>
<DD>

<P CLASS=para>
Starting position of content to replace. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>end</I><br>
<DD>

<P CLASS=para>
Ending position of content to replace. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Replaces a portion of the <tt CLASS=literal>TextArea</tt>'s 
content with the given text. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.14">replaceText</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.14.1">public void replaceText (String string, int startPosition, int endPosition) <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>string</I><br>
<DD>

<P CLASS=para>
New content to place in <tt CLASS=literal>TextArea</tt>. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>startPosition</I><br>
<DD>

<P CLASS=para>
Starting position of content to replace. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>endPosition</I><br>
<DD>

<P CLASS=para>
Ending position of content to replace. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Replaces a portion of the <tt CLASS=literal>TextArea</tt>'s 
content with the given text. Replaced by <tt CLASS=literal>replaceRange(String, 
int, int)</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.15">setColumns</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.15.1">public void setColumns (int columns) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters <br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>columns</I><br>
<DD>

<P CLASS=para>
New number of columns. </DL>
<p>
<DT CLASS=varlistentry>Throws<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>IllegalArgumentException</I><br>
<DD>

<P CLASS=para>
If 
<tt CLASS=literal>columns</tt> is less than zero. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Changes the number of columns. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.16">setRows</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-5.16.1">public void setRows (int rows) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>rows</I><br>
<DD>

<P CLASS=para>
New number of columns. </DL>
<p>
<DT CLASS=varlistentry>Throws<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>IllegalArgumentException</I><br>
<DD>

<P CLASS=para>
If 
<tt CLASS=literal>rows</tt> is less than zero. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Changes the number of rows. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-6">Protected Instance Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-6.1">paramString</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-6.1.1">protected String paramString()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
String with current settings of <tt CLASS=literal>TextArea</tt>. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>TextComponent.paramString()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Helper method for <tt CLASS=literal>toString()</tt> 
to generate string of current settings. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-TEXTAREA-SECT-7">See Also</A></h2>

<P CLASS=para>
<tt CLASS=literal>Dimension</tt>, <tt CLASS=literal>TextComponent</tt>, 
<tt CLASS=literal>String</tt> 

</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch19_56.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top><A HREF="ch19_58.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>SystemColor <img src="gifs/bstar.gif" alt="(New)" border=0></td>
<td width=171 align=center valign=top><a href="index/idx_a.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>TextComponent</td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
